package com.xtkj.superclub_entity.entity.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author lizheqi
 * @create 2019-12-25-10:29
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("pro_color_size_map")
public class ProColorSizeMap implements Serializable {
    @TableId(value = "pro_id",type = IdType.INPUT)
    private String proId;//商品颜色尺寸编号
    @TableField(exist = false)
    private Product product;
    @TableId(value = "pro_id",type = IdType.INPUT)
    private String colorId;
    @TableField(exist = false)
    private Color color;
    @TableId(value = "pro_id",type = IdType.INPUT)
    private String sizeId;
    @TableField(exist = false)
    private Size size;
    private int cnt;//库存数量
}
